<?php
/**
 * Created by PhpStorm.
 * User: dingding
 * Date: 2017/8/4
 * Time: 15:38
 */
header("Content-type: text/html; charset=gbk");
$a = iconv("UTF-8","GBK",$_POST['data']);
echo $a."\n";

$b = json_decode($_POST['data'], true);
//echo $b['s'];
 echo iconv("UTF-8","GBK",$b['s']);
//echo json_decode(iconv("UTF-8","GBK",$_POST['data']), JSON_UNESCAPED_UNICODE);

//echo $_POST['data']['s'];
//$a = json_decode($_POST['data']);


//echo iconv("UTF-8","GBK",$_POST['data'])."\n";
//

////
//echo urldecode($_POST['data'])."\n";
//


//$a = iconv("UTF-8","GBK",urldecode($_POST['data']));
//echo $a;
//$b = iconv("UTF-8","GBK", $a);
//echo $b;
//echo json_decode($b);
//
//
//$para = json_decode($a,JSON_UNESCAPED_UNICODE);
//var_dump($para);
//echo $a['s']."\n";
//echo $a['v'];


?>